package gdou.gym.dao;

import gdou.gym.entity.Discredit;
import gdou.gym.entity.DiscreditExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface DiscreditMapper {
    long countByExample(DiscreditExample example);

    @Select(" select reason from discredit where account=#{account}")
    String getReasonByAccount(String account);

    @Update("")
    void setReasonByAccount(String account,String reason);

    int deleteByExample(DiscreditExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Discredit record);

    int insertSelective(Discredit record);

    List<Discredit> selectByExampleWithBLOBs(DiscreditExample example);

    List<Discredit> selectByExample(DiscreditExample example);

    Discredit selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Discredit record, @Param("example") DiscreditExample example);

    int updateByExampleWithBLOBs(@Param("record") Discredit record, @Param("example") DiscreditExample example);

    int updateByExample(@Param("record") Discredit record, @Param("example") DiscreditExample example);

    int updateByPrimaryKeySelective(Discredit record);

    int updateByPrimaryKeyWithBLOBs(Discredit record);

    int updateByPrimaryKey(Discredit record);
}